import Layout from '@/components/common/Home.vue'

let behind = [
	{ path: '/', redirect: '/index' },
	{ path: '/index',component: Layout,meta: {title: '自述文件'},children: [
			{ path: '',component: () => import('@/view/index/index.vue'),meta: { title: '概况' } }
		]
	},
	{ path: '/shop',component: Layout,meta: {title: '自述文件'},children: [
		{ path: 'custom',component: () => import('@/view/shop/custom.vue'),meta: { title: '自定义页面' } }
		]
	},
	{ path: '/courseList',component: Layout,meta: { title: '店铺装修'},children: [
			{ path: 'classification',component: () => import('@/view/courseList/classification.vue'),meta: { title: '分类' } },
			{ path: 'fenzu',component: () => import('@/view/courseList/fenzu.vue'),meta: { title: '分组' } },
			{ path: 'article',component: () => import('@/view/courseList/article.vue'),meta: { title: '图文' } },
			{ path: 'audio',component: () => import('@/view/courseList/audio.vue'),meta: { title: '音频' } },
			{ path: 'video',component: () => import('@/view/courseList/video.vue'),meta: { title: '视频' } },
			{ path: 'package',component: () => import('@/view/courseList/package.vue'),meta: { title: '专栏' } },
			{ path: 'columnManage',component: () => import('@/view/courseList/columnManage.vue'),meta: { title: '专栏内容管理' } },
		]
	},
	{
		path: '/live',component: Layout,meta: { title: '公开课'},children: [
			{ path: 'small_class',component: () => import('@/view/live/small_class.vue'),meta: { title: '公开课'} },
		]
	},
	{ path: '/aidTool',component: Layout,meta: { title: '店铺装修'},children: [
			{ path: 'examination',component: () => import('@/view/aidTool/examination.vue'),meta: { title: '试卷'} },
			{ path: 'examManage',component: () => import('@/view/aidTool/examManage.vue'),meta: { title: '试题管理' } },
			{ path: 'questionbank',component: () => import('@/view/aidTool/questionbank.vue'),meta: { title: '题库'} },
			{ path: 'questionbank_detail',component: () => import('@/view/aidTool/questionbank_detail.vue'),meta: { title: '试题列表' }	},
			{ path: 'exam',component: () => import('@/view/aidTool/exam.vue'),meta: { title: '考试'} },
			{ path: 'answerDetail',component: () => import('@/view/aidTool/answerDetail.vue'),meta: { title: '答题详情' } },
		]
	},
	{ path: '/lecturer_manage',component: Layout,meta: { title: '店铺装修'},children: [
			{ path: 'lecturer_list',component: () => import('@/view/lecturerManage/lecturer_list.vue'),meta: { title: '讲师列表'} },
			{ path: 'lecturer_commission',component: () => import('@/view/lecturerManage/lecturer_commission.vue'),meta: { title: '讲师佣金'} },
			{ path: 'lecturer_withdraw',component: () => import('@/view/lecturerManage/lecturer_withdraw.vue'),meta: { title: '讲师提现'} },
			{ path: 'lecturer_set',component: () => import('@/view/lecturerManage/lecturer_set.vue'),meta: { title: '讲师配置'} },
		]
	},
	{ path: '/user_manage',component: Layout,meta: { title: '用户管理'},children: [
			{ path: 'user_list',component: () => import('@/view/index/new_user_list.vue'),meta: { title: '用户列表'} },
			{ path: 'member_settings',component: () => import('@/view/userManage/member_settings.vue'),meta: { title: '会员设置'} },
			{ path: 'member_list',component: () => import('@/view/userManage/member_list.vue'),meta: { title: '会员列表'} },
		]
	},
	{ path: '/order_manage',component: Layout,meta: { title: '用户管理'},children: [
			{ path: 'order_list',component: () => import('@/view/orderManage/order_list.vue'),meta: { title: '订单管理'} },
			{ path: 'order_detail',component: () => import('@/view/orderManage/order_detail.vue'),meta: { title: '订单详情' } },
			{ path: 'refund_list',component: () => import('@/view/orderManage/refund_list.vue'),meta: { title: '退款管理'} },
			{ path: 'refund_detail',component: () => import('@/view/orderManage/refund_detail.vue'),meta: {	title: '退款详情' } },
			{ path: 'schoolpay_list',component: () => import('@/view/orderManage/schoolpay_list.vue'),meta: { title: '网校提现订单'} },
		]
	},
	{ path: '/market',component: Layout,meta: { title: '营销中心'},children: [
			{ path: 'marketingPlay',component: () => import('@/view/market/marketingPlay.vue'),meta: { title: '营销玩法'} },
			{ path: '/inviteCode',component: () => import('@/view/market/inviteCode.vue'),meta: { title: '邀请码' }	},
			{ path: '/inviteFriendSee',component: () => import('@/view/market/inviteFriendSee.vue'),meta: {	title: '请好友看' } },
			{ path: '/coupon',component: () => import('@/view/market/coupon.vue'),meta: { title: '优惠劵' } },
			{ path: '/couponNew',component: () => import('@/view/market/couponNew.vue'),meta: {	title: '优惠劵(新)'	} },
			{ path: '/teamwork',component: () => import('@/view/market/teamwork.vue'),meta: { title: '拼团' },children: [
					{ path: '',component: () => import('@/view/market/teamwork_index.vue'),meta: { title: '拼团' } },
					{ path: 'create_team',component: () => import('@/view/market/createTeam.vue'),meta: { title: '创建拼团'	} },
					{ path: 'view_team',component: () => import('@/view/market/viewTeam.vue'),meta: { title: '拼团'	} }
				]
			},
			{ path: '/seckill',component: () => import('@/view/market/seckill.vue'),meta: {	title: '秒杀' }	},
			{ path: '/limitDiscount',component: () => import('@/view/market/limitDiscount.vue'),meta: {	title: '限时折扣' }	},
			{ path: '/exchangeCode',component: () => import('@/view/market/exchangeCode.vue'),meta: { title: '兑换码' }	},
			{ path: '/goodsRecommend',component: () => import('@/view/market/goodsRecommend.vue'),meta: { title: '商品推荐'	} },
			{ path: '/advertisePop',component: () => import('@/view/market/advertisePop.vue'),meta: { title: '弹窗广告' } },
			{ path: '/payGifts',component: () => import('@/view/market/payPolitely.vue'),meta: {	title: '支付有礼' }	},
			{ path: '/activation_code',component: () => import('@/view/market/activation_code.vue'),meta: {	title: '激活码'	} },
		]
	},
	{ path: '/setting',component: Layout,meta: { title: '设置'},children: [
			{ path: 'setshop',component: () => import('@/view/setting/setshop.vue'),meta: { title: '店铺设置'} },
			{ path: 'staff',component: () => import('@/view/setting/staff.vue'),meta: { title: '员工管理'} },
			{ path: 'staffauth',component: () => import('@/view/setting/staffauth.vue'),meta: { title: '员工权限'} },
		]
	},
	{ path: '/service',component: Layout,meta: { title: '服务'},children: [
			{ path: 'service_buy',component: () => import('@/view/service/service_buy.vue'),meta: { title: '服务订购'} },
		]
	},
	{ path: '/infoManage',component: Layout,meta: { title: '客服管理'},children: [
			{ path: 'set_kefu',component: () => import('@/view/message/set_kefu.vue'),meta: { title: '设置客服'} },
			{ path: 'reply_msg',component: () => import('@/view/message/reply_msg.vue'),meta: { title: '回复信息'} },
		]
	},
	{ path: '/announce_manage',component: Layout,meta: { title: '公告管理' },children: [
			{ path: '',component: () => import('@/view/setting/announce_manage.vue'),meta: { title: '公告管理' } }
		]		
	},
	{ path: '/login',component: () => import( '../components/page/Login.vue'),meta: { title: '登录',permission: true }},	
	{ path: '/promoter',component: () => import('@/view/market/promoter.vue'),meta: { title: '推广员' } },	
	{ path: '/increaseFans',component: () => import('@/view/market/increaseFans.vue'),meta: { title: '涨粉神器'	}},			
	{ path: '/exchangeCodeList',component: () => import('@/view/market/exchangeCodeList.vue'),meta: { title: '兑换码列表' } },
	{ path: '/myShop',component: () => import('@/view/shop/myShop.vue'),meta: {	title: '我的店铺' } },
	{ path: '*',redirect: '/404' },
	{ path: '/refresh',component: resolve => require(['@/view/refresh/refresh.vue'], resolve),meta: { title: '用于同路由刷新' }	},
	{ path: '/tmpshop',component: () => import('@/view/shop/tmpshop.vue'),meta: { title: '店铺预览'	} },
	{ path: '/test',component: () => import('@/view/shop/test.vue'),meta: {	title: '用户自定义页面'	} },
	{ path: '/test7/kefuchat',component: () => import('../view/shop/kefuchat.vue'),name: "test7kefuchat",meta: { title: '客服聊天框' } }
];
export default behind;